mergeInto(LibraryManager.library, {

  GetCookieValue: function (parameter) {
    var returnStr = getCookie(Pointer_stringify(parameter));
    var bufferSize = lengthBytesUTF8(returnStr) + 1;
    var buffer = _malloc(bufferSize);
    stringToUTF8(returnStr, buffer, bufferSize);
    return buffer;
  },
  MakeAlert: function (message) {
    makeAlert(message);
  }

});